package com.hxzy.controller.admin.login.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ApiModel(value = "登录模型")
public class AdminLoginReq {

    @ApiModelProperty(value = "账号类型")
    @NotBlank(message = "账号类型不能为空")
    private String accountType;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不为空")
    private String code;

    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不为空")
    private String loginName;


    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不为空")
    @Length(min = 3,max = 30,message = "密码长度在3-30个字符之间")
    private String loginPwd;

    @ApiModelProperty(value = "验证码标识")
    @NotBlank(message = "验证码标识不为空")
    private String uuid;
}
